module("locate",package.seeall)
start=function()
  move.init()
  bind(const.move_event_stepend,stepend)
  move.roam(7)
end

stepend=function()
  if (Data["room"]) then
  rm=map.getroomid(Data["room"])
	if (#rm==1) then
		Data["room/id"]=rm[1]
		print(Data["room/id"])
	else
	  move.roamstep(Data["room/exits"])
	end
  end
end